//
//  AFNetworkHelper.h
//  TableBarControllerDemo
//
//  Created by 边果互动 on 2021/3/17.
//

#import <Foundation/Foundation.h>

typedef void(^success) (id _Nullable data);
typedef void(^failed) (NSString * _Nullable msg, NSInteger code);

NS_ASSUME_NONNULL_BEGIN

@interface AFNetworkHelper : NSObject

+ (instancetype) defaultAFNetwork;

- (void) postWithUrl: (NSString *) url andParams: (NSDictionary *) params andSucucess:(nonnull success)success andError:(nonnull failed)failed;

- (void) getWithUrl: (NSString *) url andPararams: (NSDictionary *) params andSucucess:(nonnull success)success andError:(nonnull failed)failed;
@end

NS_ASSUME_NONNULL_END
